package cn.wx.shop.entity;

import java.util.Date;

/**
 * 商品实体类
 * 
 * @author acer
 *
 */
public class Goods {

	private Integer id;
	private Integer categoryId;
	private String goodsSn;
	private String name;
	private Integer brandId;
	private Integer goodsNumber;
	private String goodsBrief;
	private String goodsDesc;
	private String primaryPicUrl;
	private String listPicUrl;
	private Integer isOnSale;
	private Integer isHot;
	private Integer isDelete;
	private Integer sellVolume;
	private Double retailPrice;
	private Double marketPrice;
	private Integer isSecKill;
	private Date startTime;
	private Date createTime;
	private Date updateTime;
	private Integer createUserId;
	private Integer updateUserId;

	// 分类名称
	private String categoryParentName;
	private String categoryName;
	private String[] listPicUrls;

	public String[] getListPicUrls() {
		if (listPicUrl != null && !listPicUrl.equals(""))
			if (listPicUrl.indexOf(",") != -1) {
				listPicUrls = listPicUrl.split(",");
			} else {
				listPicUrls = new String[] { listPicUrl };
			}
		return listPicUrls;
	}

	public void setListPicUrls(String[] listPicUrls) {
		this.listPicUrls = listPicUrls;
	}

	public String getCategoryParentName() {
		return categoryParentName;
	}

	public void setCategoryParentName(String categoryParentName) {
		this.categoryParentName = categoryParentName;
	}

	public String getCategoryName() {
		return categoryName;
	}

	public void setCategoryName(String categoryName) {
		this.categoryName = categoryName;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getCategoryId() {
		return categoryId;
	}

	public void setCategoryId(Integer categoryId) {
		this.categoryId = categoryId;
	}

	public String getGoodsSn() {
		return goodsSn;
	}

	public void setGoodsSn(String goodsSn) {
		this.goodsSn = goodsSn;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getBrandId() {
		return brandId;
	}

	public void setBrandId(Integer brandId) {
		this.brandId = brandId;
	}

	public Integer getGoodsNumber() {
		return goodsNumber;
	}

	public void setGoodsNumber(Integer goodsNumber) {
		this.goodsNumber = goodsNumber;
	}

	public String getGoodsBrief() {
		return goodsBrief;
	}

	public void setGoodsBrief(String goodsBrief) {
		this.goodsBrief = goodsBrief;
	}

	public String getGoodsDesc() {
		return goodsDesc;
	}

	public void setGoodsDesc(String goodsDesc) {
		this.goodsDesc = goodsDesc;
	}

	public String getPrimaryPicUrl() {
		return primaryPicUrl;
	}

	public void setPrimaryPicUrl(String primaryPicUrl) {
		this.primaryPicUrl = primaryPicUrl;
	}

	public String getListPicUrl() {
		return listPicUrl;
	}

	public void setListPicUrl(String listPicUrl) {
		this.listPicUrl = listPicUrl;
	}

	public Integer getIsOnSale() {
		return isOnSale;
	}

	public void setIsOnSale(Integer isOnSale) {
		this.isOnSale = isOnSale;
	}

	public Integer getIsHot() {
		return isHot;
	}

	public void setIsHot(Integer isHot) {
		this.isHot = isHot;
	}

	public Integer getIsDelete() {
		return isDelete;
	}

	public void setIsDelete(Integer isDelete) {
		this.isDelete = isDelete;
	}

	public Integer getSellVolume() {
		return sellVolume;
	}

	public void setSellVolume(Integer sellVolume) {
		this.sellVolume = sellVolume;
	}

	public Double getRetailPrice() {
		return retailPrice;
	}

	public void setRetailPrice(Double retailPrice) {
		this.retailPrice = retailPrice;
	}

	public Double getMarketPrice() {
		return marketPrice;
	}

	public void setMarketPrice(Double marketPrice) {
		this.marketPrice = marketPrice;
	}

	public Integer getIsSecKill() {
		return isSecKill;
	}

	public void setIsSecKill(Integer isSecKill) {
		this.isSecKill = isSecKill;
	}

	public Date getStartTime() {
		return startTime;
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Integer getCreateUserId() {
		return createUserId;
	}

	public void setCreateUserId(Integer createUserId) {
		this.createUserId = createUserId;
	}

	public Integer getUpdateUserId() {
		return updateUserId;
	}

	public void setUpdateUserId(Integer updateUserId) {
		this.updateUserId = updateUserId;
	}

}
